package com.hulytu.invasion.plugin;

import android.app.Activity;
import android.os.Bundle;

/**
 * activity 增强插件
 *
 * @param <T>
 */
public interface ActivityEnhancePlugin<T extends Activity> extends EnhancePlugin<T> {

    String CREATE = "onCreated";
    String RESUME = "onResumed";
    String STOP = "onStopped";
    String PAUSE = "onPaused";
    String START = "onStarted";
    String DESTROY = "onDestroyed";

    void setHostClass(Class<T> clazz);

    Class<T> getHostClass();

    void onCreated(T activity, Bundle bundle);

    void onResumed(T activity);

    void onStopped(T activity);

    void onPaused(T activity);

    void onStarted(T activity);

    void onDestroyed(T activity);

}
